<?xml version="1.0" encoding="UTF-8" ?>
<XMLDB PATH="repository/elis_files/db" VERSION="20110906" COMMENT="XMLDB file for Moodle repository/elis_files"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xsi:noNamespaceSchemaLocation="../../../lib/xmldb/xmldb.xsd">
  <TABLES>
    <TABLE NAME="elis_files_categories" COMMENT="Store ELIS Files categories" NEXT="elis_files_course_store">
      <FIELDS>
        <FIELD NAME="id" TYPE="int" LENGTH="10" NOTNULL="true" UNSIGNED="true" SEQUENCE="true" NEXT="parent"/>
        <FIELD NAME="parent" TYPE="int" LENGTH="10" NOTNULL="true" UNSIGNED="true" DEFAULT="0" SEQUENCE="false" PREVIOUS="id" NEXT="uuid"/>
        <FIELD NAME="uuid" TYPE="char" LENGTH="36" NOTNULL="true" SEQUENCE="false" PREVIOUS="parent" NEXT="path"/>
        <FIELD NAME="path" TYPE="text" LENGTH="small" NOTNULL="true" SEQUENCE="false" PREVIOUS="uuid" NEXT="title"/>
        <FIELD NAME="title" TYPE="char" LENGTH="255" NOTNULL="true" SEQUENCE="false" PREVIOUS="path"/>
      </FIELDS>
      <KEYS>
        <KEY NAME="primary" TYPE="primary" FIELDS="id" COMMENT="Primary key for elis_files_categories"/>
      </KEYS>
      <INDEXES>
        <INDEX NAME="uuid" UNIQUE="true" FIELDS="uuid"/>
      </INDEXES>
    </TABLE>
    <TABLE NAME="elis_files_course_store" COMMENT="Stores course storage UUID values" PREVIOUS="elis_files_categories" NEXT="elis_files_userset_store">
      <FIELDS>
        <FIELD NAME="id" TYPE="int" LENGTH="10" NOTNULL="true" UNSIGNED="true" SEQUENCE="true" NEXT="courseid"/>
        <FIELD NAME="courseid" TYPE="int" LENGTH="10" NOTNULL="true" UNSIGNED="true" DEFAULT="0" SEQUENCE="false" PREVIOUS="id" NEXT="uuid"/>
        <FIELD NAME="uuid" TYPE="char" LENGTH="36" NOTNULL="true" SEQUENCE="false" PREVIOUS="courseid"/>
      </FIELDS>
      <KEYS>
        <KEY NAME="primary" TYPE="primary" FIELDS="id" NEXT="courseid"/>
        <KEY NAME="courseid" TYPE="foreign" FIELDS="courseid" REFTABLE="course" REFFIELDS="id" PREVIOUS="primary"/>
      </KEYS>
      <INDEXES>
        <INDEX NAME="courseid-uuid" UNIQUE="true" FIELDS="courseid, uuid"/>
      </INDEXES>
    </TABLE>
    <TABLE NAME="elis_files_userset_store" COMMENT="Stores userset shared storage UUID values" PREVIOUS="elis_files_course_store">
      <FIELDS>
        <FIELD NAME="id" TYPE="int" LENGTH="10" NOTNULL="true" UNSIGNED="true" SEQUENCE="true" NEXT="usersetid"/>
        <FIELD NAME="usersetid" TYPE="int" LENGTH="10" NOTNULL="true" UNSIGNED="true" DEFAULT="0" SEQUENCE="false" PREVIOUS="id" NEXT="uuid"/>
        <FIELD NAME="uuid" TYPE="char" LENGTH="36" NOTNULL="true" SEQUENCE="false" PREVIOUS="usersetid"/>
      </FIELDS>
      <KEYS>
        <KEY NAME="primary" TYPE="primary" FIELDS="id" NEXT="usersetid"/>
        <KEY NAME="usersetid" TYPE="foreign" FIELDS="usersetid" REFTABLE="crlm_cluster" REFFIELDS="id" PREVIOUS="primary"/>
      </KEYS>
      <INDEXES>
        <INDEX NAME="usersetid-uuid" UNIQUE="true" FIELDS="usersetid, uuid"/>
      </INDEXES>
    </TABLE>
  </TABLES>
</XMLDB>